<template>
	<view class="box" :style="{'padding-top':systemHeight+28.5+'px'}">
		<view class="head">
			<image class="back" src="/static/img/back.png" @click="back()"></image>
			<view class="title">Driver Join</view>
			<view class="right"></view>
		</view>
		<image class="img" src="/static/img/error.png" v-if="true"></image>
		<image class="img" src="/static/img/waiting.png" v-if="false"></image>
		<image class="img" src="/static/img/success.png" v-if="false"></image>
		
		<view class="big_title" v-if="false">Approved</view>
		<view class="text" v-if="false">Personal information can be viewed on  the driver's end</view>
		
		<view class="big_title" v-if="true">Review failed</view>
		<view class="text" v-if="true">Your driving license has expired
		<text>Please upload again</text>
		</view>
		
		<view class="big_title" v-if="false">Data review in progress</view>
		<view class="text" v-if="false">Please be patient and wait</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				systemHeight: null
			}
		},
		created() {
			this.systemHeight = uni.getSystemInfoSync().statusBarHeight
		},
		methods: {
			back() {
				uni.navigateBack()
			}
		}
	}
</script>

<style>
	.box {
		display: flex;
		flex-direction: column;
		align-items: center;
		position: fixed;
		width: 100%;
		height: 100vh;
	}

	.head {
		width: 92%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 110rpx;
	}

	.back {
		width: 20rpx;
		height: 36rpx;
	}

	.title {
		font-family: Mont;
		font-weight: bold;
		font-size: 32rpx;
	}

	.right {
		width: 20rpx;
	}
	.img{
		width: 272rpx;
		height: 272rpx;
		margin-bottom: 35rpx;
	}
	.big_title{
		font-family: Mont;
		font-weight: bold;
		font-size: 36rpx;
		color: #000000;
		margin-bottom: 25rpx;
	}
	.text{
		font-family: Mont;
		font-weight: 400;
		font-size: 24rpx;
		color: #787878;
	}
	.text text{
		color: #34BA78;
		margin: 0rpx 10rpx;
	}
</style>